#include <QtGui/QApplication>
#include "speedtest.h"

#ifdef Q_OS_SYMBIAN
#include <eikenv.h>
#include <eikappui.h>
#include <aknenv.h>
#include <aknappui.h>
#endif


#include <QtPlugin>
Q_IMPORT_PLUGIN(qjpeg)

int main(int argc, char *argv[])
{

    
    QApplication a(argc, argv);
    Q_INIT_RESOURCE(ressut);
    SpeedTest w;

#ifdef Q_OS_SYMBIAN
    CAknAppUi* appUi = dynamic_cast<CAknAppUi*> (CEikonEnv::Static()->AppUi());
    TRAPD(error,
    if (appUi) {
        // Lock application orientation into landscape
        appUi->SetOrientationL(CAknAppUi::EAppUiOrientationLandscape);
    }
    );
    w.showFullScreen();
#else
    w.showNormal();
#endif

    w.show();

    return a.exec();
}
